package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆信息对象 dw_car
 * 
 * @author ruoyi
 * @date 2024-01-31
 */
public class DwCar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long carId;

    /** 车辆gps号 */
    @Excel(name = "车辆gps号")
    private String carNumber;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String cardName;

    /** 经度 */
    @Excel(name = "经度")
    private BigDecimal longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private BigDecimal latitude;

    /** 最后上报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后上报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gpsTime;

    /** 部门 */
    private Long deptId;
    @Excel(name = "部门")
    private String  deptName;

    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setCarNumber(String carNumber) 
    {
        this.carNumber = carNumber;
    }

    public String getCarNumber() 
    {
        return carNumber;
    }
    public void setCardName(String cardName) 
    {
        this.cardName = cardName;
    }

    public String getCardName() 
    {
        return cardName;
    }
    public void setLongitude(BigDecimal longitude) 
    {
        this.longitude = longitude;
    }

    public BigDecimal getLongitude() 
    {
        return longitude;
    }
    public void setLatitude(BigDecimal latitude) 
    {
        this.latitude = latitude;
    }

    public BigDecimal getLatitude() 
    {
        return latitude;
    }
    public void setGpsTime(Date gpsTime) 
    {
        this.gpsTime = gpsTime;
    }

    public Date getGpsTime() 
    {
        return gpsTime;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carId", getCarId())
            .append("carNumber", getCarNumber())
            .append("cardName", getCardName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("gpsTime", getGpsTime())
            .append("deptId", getDeptId())
            .toString();
    }
}
